package com.dudsbury.database;

public class MyPayment {
	private String paymentID;
	private String payeeName;
	private String payeeSurname;
	private String telephoneNo;
	private String email;
	private String paymentType;
	private float amount;
	private boolean markAsPaid;

	// Give parameters constants
	private static final int PAYMENT_ID = 0;
	private static final int PAYEE_NAME = 1;
	private static final int PAYEE_SURNAME = 2;
	private static final int TELEPHONE_NO = 3;
	private static final int EMAIL = 4;
	private static final int PAYMENT_TYPE = 5;
	private static final int AMOUNT = 6;
	private static final int MARK_AS_PAID = 7;

	// default constructor methods
	public MyPayment() {
	}

	// constructor with array
	public MyPayment(String[] data) {
		this.paymentID = data[PAYMENT_ID];
		this.payeeName = data[PAYEE_NAME];
		this.payeeSurname = data[PAYEE_SURNAME];
		this.telephoneNo = data[TELEPHONE_NO];
		this.email = data[EMAIL];
		this.paymentType = data[PAYMENT_TYPE];
		this.amount = (Float.valueOf(data[AMOUNT]));
		this.markAsPaid = Boolean.valueOf(data[MARK_AS_PAID]);
	}

	public String getPaymentID() {
		return paymentID;
	}

	public void setPaymentID(String paymentID) {
		this.paymentID = paymentID;
	}

	public String getPayeeName() {
		return payeeName;
	}

	public void setPayeeName(String payeeName) {
		this.payeeName = payeeName;
	}

	public String getPayeeSurname() {
		return payeeSurname;
	}

	public void setPayeeSurname(String payeeSurname) {
		this.payeeSurname = payeeSurname;
	}

	public String getTelephoneNo() {
		return telephoneNo;
	}

	public void setTelephoneNo(String telephoneNo) {
		this.telephoneNo = telephoneNo;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPaymentType() {
		return paymentType;
	}

	public void setPaymentType(String paymentType) {
		this.paymentType = paymentType;
	}

	public float getAmount() {
		return amount;
	}

	public void setAmount(float amount) {
		this.amount = amount;
	}

	public boolean isMarkAsPaid() {
		return markAsPaid;
	}

	public void setMarkAsPaid(boolean markAsPaid) {
		this.markAsPaid = markAsPaid;
	}

}
